package yifeng;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class Count {
	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		File file = new File("d:\\fff.txt");
		
		BufferedReader br = new BufferedReader(new InputStreamReader(
				new FileInputStream(file)));
		
		int score = 0;
		String str = null;
		while((str = br.readLine()) != null){
//			if(!str.contains("="))
//				break;
			int index = str.indexOf('=') + 1;
			score += Integer.valueOf(str.substring(index).trim());
		}
		
		br.close();
		
		System.out.println(score);
	}

}
